package com.woniuxy.feign;

import com.woniuxy.entity.AllUser;
import com.woniuxy.util.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @ClassName AllUserAPI
 * @Description
 * @Author puhaohui
 * @Date 2025/7/11 10:42
 * @Version 1.0
 */
@FeignClient(name = "campus-user", contextId = "allUserAPI")
public interface AllUserAPI {
    @GetMapping("/user/all")
    ResponseData<List<AllUser>> getAllUsers();/**
     * 根据ID查询用户详情
     */
    @GetMapping("/user/{userId}")
    public ResponseData<AllUser> getUserById(@PathVariable("userId") Long userId);
}
